<script>
import { reactive, toRefs } from 'vue';

export default {
  setup (props) {
    const data = reactive({
      inputVal: '1',
      todoList: [],
    });

    function addTodo () {
      data.todoList.push(data.inputVal);
      data.inputVal = '';
    }

    return {
      ...toRefs(data),
      addTodo,
    };
  }
}

</script>

<template>
  <h3>不同运营商积分兑换会略有不同</h3>
  <div class="btns">
    中国移动
    <a href="sms:10658999&body=HF"></a>
  </div>
  <div class="btns">
    中国联通
    <a href="sms:10010&body=JFJF#Q"></a>
  </div>
  <div class="btns">
    中国电信
    <a href="sms:10001&body=DHHF"></a>
  </div>
</template>

<style scoped lang="less">
.btns {
  width: 90%;
  height: 60px;
  background: #333;
  color: #fff;
  border-radius: 20px;
  text-align: center;
  line-height: 60px;
  margin: 0 auto 20px;
  position: relative;
  &:nth-of-type(1) {
    background: #0d76e3;
  }
  &:nth-of-type(2) {
    background: #c70909;
  }
  a {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }
}
</style>
